@charset "utf-8";
$darker: #171717;
$darkgray: #515151;
$gray: #909090;
$light-gray: #c1c1c1;
$bgcolor: #eee;
$blue: #499af5;
$orange: #ffb30e;
$red: #e43f3f;
$white: #fff;
$black: #000;
#demdet {
    padding-bottom: 30px;
    [data-demdet="section"] {
        width: 71%;
        background-color: $white;
        float: left;
        /**  头部 **/
        [data-demdet="sectionheader"] {
            border-bottom: 1px solid $gray;
            padding-left: 30px;
            padding-top: 10px;
            h1 {
                font-size: 20px;
                font-weight: normal;
            }
            .demdet-share{
                padding-right: 20px;
                position: relative;
                float: right;
                padding-left: 20px;
                margin: 10px 0 0 0;
                width: auto;
                a{
                    color: $darkgray;
                    &:hover{
                        text-decoration: underline;
                    }
                }
                &:before{
                    position: absolute;
                    left: 0;
                    top: 2px;
                    content: "";
                    background: url("../../../images/pc/icon/icon-share.png");
                    width: 12px;
                    height: 16px;
                }
            }
            /** 地址、看过、需求、评论 **/
            ul[data-demdet="sectiononeul"] {
                margin-top: 20px;
                ul {
                    padding-bottom: 20px;
                    li {
                        display: inline-block;
                        width: 175px;
                        a {
                            display: inline-block;
                        }
                    }
                    [data-demdet="address"], [data-demdet="eye"], [data-demdet="comment"], [data-demdet="demand"] {
                        b {
                            height: 20px;
                            display: inline-block;
                            margin-right: 8px;
                            vertical-align: middle;
                        }
                    }
                    [data-demdet="address"] {
                        font-size: 12px;
                        b {
                            width: 12px;
                            background-image: url("../../../images/pc/icon/icon_address.png");
                        }
                    }
                    [data-demdet="eye"] {
                        b {
                            width: 20px;
                            background-image: url("../../../images/pc/icon/icon_eye.png");
                        }
                    }
                    [data-demdet="comment"] {
                        font-size: 16px;
                        b {
                            width: 21px;
                            background-image: url("../../../images/pc/icon/icon_commentg.png");
                        }
                    }
                    [data-demdet="demand"] {
                        font-size: 16px;
                        b {
                            width: 21px;
                            background-image: url("../../../images/pc/icon/icon_demandg.png");
                        }
                    }
                }
                ul[role="tablist"] {
                    padding: 0;
                    border: none;
                    a {
                        padding: 0;
                        padding-bottom: 10px;
                        border: none;
                        color: $darker;
                        border-bottom: 2px solid transparent;
                    }

                    .active > a {
                        border-bottom: 2px solid $orange;
                        color: $orange;
                    }
                    [data-demdet="comment"].active {
                        b {
                            background-image: url("../../../images/pc/icon/icon_commento.png");
                        }
                    }
                    [data-demdet="demand"].active {
                        b {
                            background-image: url("../../../images/pc/icon/icon_demando.png");
                        }
                    }
                    [data-demdet="comment"]:hover {
                        a {
                            border: none;
                            background: none;
                            color: $orange;
                        }
                        b {
                            background-image: url("../../../images/pc/icon/icon_commento.png");
                        }
                    }

                    [data-demdet="demand"]:hover {
                        a {
                            border: none;
                            background: none;
                            color: $orange;
                        }
                        b {
                            background-image: url("../../../images/pc/icon/icon_demando.png");
                        }
                    }
                }
            }
        }
    }
    /**  右边栏  **/
    [data-demdet="aside"] {
        padding: 8px;
        width: 27%;
        background-color: $white;
        float: right;
        [data-demdet="aside-header"] {
            line-height: 48px;
            color: $gray;
            border-bottom: 1px solid $gray;
        }
        [data-demdet="aside-body"] {
            padding: 20px 5px;
            img {
                width: 100px;
                height: 100px;
                margin-left: 6px;
                margin-right: 10px;
                margin-bottom: 20px;
                border-radius: 50%;
            }
            h2 {
                display: inline-block;
                font-size: 16px;
                color: $darkgray;
                width: 115px;
                max-height: 36px;
                overflow: hidden;
            }
            p {
                color: $gray;
                font-size: 14px;
            }
            [data-demdet="btn"] {
                margin: 0 -3px;
                text-align: center;
                button {
                    font-size: 14px;
                    width: 44%;
                    height: 40px;
                }
                button:first-child {
                    margin-right: 20px;
                    font-size: 14px;
                }
            }
        }
        [data-demdet="aside-footer"] {
            border-top: 1px solid $gray;
            padding-top: 30px;
            p {
                color: $darkgray;
                margin-bottom: 20px;
                font-size: 14px;
            }
            table {
                margin-left: 26px;
                td {
                    padding-bottom: 20px;
                    font-size: 14px;
                    span {
                        color: $red;
                    }
                }
                [data-demdet="asidedate"] {
                    text-align: right;
                }
            }
        }
    }
}

/** 需求详情 **/
#demdet_demand {
    padding: 20px 36px;
    [data-demdetuser="works"] {
        p{
            font-size: 14px;
        }
    }
    /** 详情 **/
    table {
        position: relative;
        margin-bottom: 10px;
        thead {
            h1 {
                color: $blue;
                font-size: 20px;
            }
            #demdet_closedemand {
                text-align: right;
                line-height: 40px;
                a {
                    font-size: 14px;
                    color: $gray;
                }
            }
        }
        td {
            padding-bottom: 15px;
            vertical-align: top;
            font-size: 14px;
        }
        tr > td:first-child {
            width: 100px;
        }
        [data-demdet="number"] {
            position: absolute;
            right: 0;
        }

    }
    /*** 头像 ***/
    [data-demdet="headimg"] {
        margin-bottom: 30px;
        li {
            float: left;
            margin-right: 30px;
            img {
                width: 80px;
                height: 80px;
                border-radius: 50%;
            }
        }
        li:last-child {
            margin-right: 0;
        }
    }
    [data-demdet="headimg"]:after {
        content: '';
        display: table;
        clear: both;
    }
    /**  按钮  **/
    [data-demdet="btn"] {
        text-align: right;
        button {
            font-size: 14px;
            margin-left: 20px;
        }
    }
}

/** 评论 **/
.zcbl-comments {
    [data-demdet="addcomment"] {
        margin-bottom: 20px;
        padding: 30px;
        [data-demdet="btn"] {
            text-align: right;
            padding-top: 20px;
            button{
                font-size: 14px;
            }
        }
    }
    [data-demdet="texeareabox"] {
        position: relative;
        textarea {
            width: 100%;
            height: 146px;
            font-size: 14px;
            padding: 10px;
            color: $gray;
        }
        span {
            position: absolute;
            right: 20px;
            bottom: 10px;
            color: $light-gray;
        }
    }
    /** 评论内容 **/
    [data-demdet="commentContent"] {
        border-top: 1px solid $light-gray;
        margin: 0 10px;
        padding-top: 30px;
        [data-demdet="content"] {
            margin: 0 20px 30px 10px;
            position: relative;

            [data-demdet="contentLeft"] {
                position: absolute;
                vertical-align: top;
                img {
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                }
            }
            [data-demdet="contentRight"] {
                padding-left: 110px;
                [data-demdet="conhead"] {
                    padding-top: 25px;
                    padding-bottom: 14px;
                    font-size: 16px;
                    font-weight: normal;
                    color: $gray;
                    h2 {
                        a {
                        }
                        display: inline-block;
                        font-weight: normal;
                    }
                    div[data-demdet="answer"] {
                        display: inline-block;
                        font-weight: normal;
                        span {
                            color: $blue;
                        }
                    }
                    p {
                        font-size: 14px;
                        float: right;
                        font-weight: normal;
                    }
                }
                [data-demdet="conbody"] {
                    padding-bottom: 20px;
                    font-size: 14px;
                    color: $darkgray;
                }
                [data-demdet="confoot"] {
                    font-size: 14px;
                    text-align: right;
                    b {
                        background-image: url("../../../images/pc/icon/icon_message.png");
                        width: 18px;
                        height: 18px;
                        margin-right: 5px;
                        display: inline-block;
                        vertical-align: middle;
                    }
                    a {
                        color: $blue;
                        margin-right: 10px;
                    }
                    button {
                        margin-left: 10px;
                        background: none;
                    }
                }
            }
        }
    }
}

/** 删除评论确认弹窗框 **/
[data-demdet="isdelanswer"] {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background-color: $white;
    width: 260px;
    height: 100px;
    border-top: 1px solid $orange;
    box-shadow: 0 7px 20px 0px;
    text-align: center;
    h2 {
        line-height: 55px;
        b {
            background-image: url("../../../images/pc/icon/icon_choose.png");
            width: 22px;
            height: 24px;
            display: inline-block;
            vertical-align: middle;
            margin-right: 5px;
        }
    }
    button {
        width: 80px;
        height: 30px;
        margin: 0 10px;
    }
    i {
        display: inline-block;
        border: 14px solid transparent;
        border-top-color: $white;
        position: absolute;
        bottom: -28px;
        right: 20px;
    }
}

/****************                       用户                  *****************************/
#demdet {
    [data-demdet="user"] {
        [data-demdet="headimg"] {
            li {
                width: 94px;
                text-align: center;
                button {
                    margin-top: 20px;
                    width: 94px;
                    height: 33px;
                    font-size: 14px;
                }
            }
        }

    }
    /** 摸态框 **/
    [data-modal="modal"] {
        text-align: center;
        width: 500px;
        height: 240px;
        background-color: $bgcolor;
        margin: 0 auto;
        margin-top: 20%;
        border: 1px solid transparent;
        h2 {
            margin-top: 70px;
            color: $orange;
            font-size: 28px;
            line-height: 74px;
            b {
                background-image: url("../../../images/pc/icon/icon_recruitsuc.png");
                height: 74px;
                width: 76px;
                display: inline-block;
                vertical-align: middle;
                margin-right: 10px;
            }
        }
        p {
            line-height: 80px;
        }
    }
}